package com.road.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Description :
 * @FileName: IndexController.java
 * @Author :WeiHui.Zhang
 * @Data : 2016年3月31日 下午6:27:54
 * @Version:V1.00
 */
@Controller
public class IndexController extends  BaseController{

	@RequestMapping(value = "/jsp", method = RequestMethod.GET)
	public String jsp(Model model) {
		model.addAttribute("message", "hello world");
		return renderJsp("test1");
	}
	
	
	@RequestMapping(value = "/html", method = RequestMethod.GET)
	public String html(Model model) {
		model.addAttribute("message", "hello world");
		return renderHtml("test2");
	}
	
	@RequestMapping(value = "/ftl", method = RequestMethod.GET)
	public String ftl(Model model) {
		model.addAttribute("message", "hello world");
		return "test2";
	}
}
